package com.sn.pw.generate;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Zhang.yt
 */
public enum CustomEnum {
    RESP("Resp", "templates/vo/vo.java.vm"),
    CREATE("CreateReq", "templates/vo/ro.java.vm"),
    UPDATE("UpdateReq", "templates/vo/uo.java.vm");
//    QO("Resp", "templates/model/qo.java.vm"),
//    CONVERTER("Converter", "templates/converter/converter.java.vm");

    CustomEnum(String modelSuffix, String path) {
        this.modelSuffix = modelSuffix;
        this.path = path;
    }

    @Getter
    private String modelSuffix;

    @Getter
    private String path;

    public static List<String> getModel(){
        List<String> result = new ArrayList();
        CustomEnum[] values = CustomEnum.values();
        for (CustomEnum it : values) {
            result.add(it.getModelSuffix());
        }
        return result;
    }

}
